package com.trepadora.model;

import java.util.Date;

/**
 * 
 * @author Karol Lotkowski
 * 
 */
public class Chat {

	private String roomId;
	private String who;
	private String post;
	private Long date;
	
	private Date now = new Date();
	
	public Chat() {
		this.date = now.getTime();
	}
	
	public Chat(final String roomId, final String who, final String post) {
		
		this.roomId = roomId;
		this.who = who;
		this.post = post;
		this.date = now.getTime();
	}

	public String getWho() {
		return who;
	}

	public void setWho(String who) {
		this.who = who;
	}

	public String getPost() {
		return post;
	}

	public void setPost(String post) {
		this.post = post;
	}

	public Long getDate() {
		return date;
	}

	public void setDate(Long date) {
		this.date = date;
	}

	public String getRoomId() {
		return roomId;
	}

	public void setRoomId(String roomId) {
		this.roomId = roomId;
	}	
}
